package j.s.code.jsnippets.serial;

/**
 * SerialWorkRun
 */
public class SerialWorkRun {
    private final static RunSerial runSerial = FactorySerial.open();

    public long getSerial(long workNo, long machineNo) throws Exception {

        long id = runSerial.getSerial(workNo, machineNo);
        return id;
    }

    public String parseId2Str(long id) {
        return runSerial.paresSerialToString(id);
    }
}